Aggregate Shocks and the Two Sides of Credit Reallocation