In flowering you can see double, sometimes triple growth. If you vegged until 2 feet then flowered by the end you're looking at the possibility of a six foot plant.
use fertilizer higher in potassium and phosphorous and lower in nitrogen (though not entirely non-existent) and you should be fine.
If need be, gently bend and tie down the branches to keep height down. be very careful, VERY CAREFUL.