Unless the court, for cause, orders otherwise, the dismissal of a case under this title does not bar the discharge, in a later case under this title, of debts that were dischargeable in the case dismissed; nor does the dismissal of a case under this title prejudice the debtor with regard to the filing of a subsequent petition under this title, except as provided in
section 109(g) of this title.