Controllability of a nonholonomic macroeconomic system