write to file (save balance)