a) it is absolutely conceivable to write a cheque to yourself. For example, to move cash between bank accounts
b) the bank has a big database and a system of clearing cheques that ensures you cannot double-spend money by writing yourself a cheque. If you try to kite cheques by abusing the latency in the system they notice because it turns out you can just write that down in a central database too and it's pretty effective