See the Lostpedia theory policy for more details.
The Smoke Monster was bound to the rules stated in the Truce.
Read them carefully and see why and how. FLocke had to obey them also. See also the section about Cerberus in the theories page about the Man in Black.