If your front wheel locks while you are stopping, you should:

If your front wheel locks while you are making a quick stop, release the front brake immediately and then re-apply it firmly. Use both the front and rear brakes if you need to stop quickly.
DMV Writen Test