To write options you need a margin account. If you don't have it then you cannot write options, even if they are cash secured puts, you still need a margin account.
To answer you intial question, if you are assigned and don't have enough money to cover the assignement then your broker will...