Bankruptcy Law Questions? Ask a Bankruptcy Lawyer.
The bank still has a note that would be in default, and could still sue you for the balance. If they were successful in getting a judgment, that judgment could be discharged in bankruptcy, unless the bank asserted fraud. It would be a stretch but the bank is going to want the car returned, and the bankruptcy court is going to order that the car be surrendered, when they find out that you sold it there could be a problem and they may either make you give the money to the bank or not discharge the judgment.
You should get a consult with a local bankruptcy attorney and see if this is going to e an issue should you decide to file..