Assuming it was entered in Receivables, enter the whole batch over again, this time using negative amounts and a slightly different check number for each transaction. Then apply the negative amounts against the zero balance invoice(s), bringing the balance back up to the original amount. Post, and you are back at the beginning.
This is also how you record an NSF check.
Steve