Is it Legal?

Is it legal to do increase withholding allowances?

Yes, Form W-4 (2014) under Purpose states:

Complete Form W-4 so that your employer can withhold the correct federal income tax from your pay.

A person who claims fewer deductions than they should is effectively giving the government an interest free loan.