The macrodynamics of debt deflation