WOs have to be applied prior to being posted. If you post an unapplied (or partially applied) WO, the system will delete the unapplied amount.
In AR Manager, enter your WO, apply it to the Invoice you are writing off and then save it. Go into Payment Application Posting, and post it.