> The second that you write a check, it should be deducted from your, (your meaning the record you keep not the banks record), balance. In this scenario, when you wrote the check, the balance would be -$1. That is the problem here. The bank can clear or not clear things in any order, but if your recording is better, you will never have an issue.
For this to work, you also have to not apply deposits to your working balance until you have confirmed that the bank has applied them to your available balance.
And you have to make sure you correctly account or any fees, service charges, or temporary holds (the last often catches people out.)