Hi Hassan,
If everything is already posted on ledger accounts then I would reverse the check in the bank module and do a correction of the AP payment Transaction to get the vendor Balance right. Thereafter, you can repeat the whole check payment process again as usual.
Hope it helps,
Ludwig