The effect of external finance on the equilibrium allocation of capital