When you file a chapter 7 or chapter 13 bankruptcy, any foreclosure proceedings that have already commenced are immediately stayed, or stopped. So for the time being you will most likely be able to remain in your home.