After you file

If your check was already deposited into someone else's account, meaning  you gave the IRS a valid routing and account number, even though not yours, then the IR and the bank will likely be unable to help you.  You should talk to the bank, but they may be unable to remove the money from another account.  You may be lucky, though, ad find the other account holder willing to report the money as incorrectly deposited and return it to the bank.