If the master commissioner had notice of your bankruptcy, then it should not have been sold. If the master commissioner did not get notice, then the sale may have occurred anyway. If that happened, then the sale is final and the home is lost. Hopefully you got notice to the master commissioner in time.
Here is some information about using a Chapter 13 to save your home from foreclosure: http://www.stopforeclosureattorneynorthernkentucky.com/will-bankruptcy-save-my-home-from-foreclosure-.html