If the ACH has been deposited to the General fund and it is determined that it belongs to another fund, you can use whatever procedures you have for correction of a posting error to move the receipt from the general fund to the proper fund. It is not necessary to write a check, unless this is part of your process.