There is information missing from your post which makes giving you a clear answer difficult. For instance:
Who discovered this was a scam - you or the bank?
Has the bank already paid the checks you wrote before the scam was discovered?
Did you have enough money in the bank to cover the checks after deducting the money that was deposited as part of the scam?...