1.     Post a new journal entry that moves the balances from the wrong account numbers to the correct account numbers.

OR

2.    Reverse the batch that posted the balances to the incorrect accounts.  Then post a new journal entry to the correct accounts.