You can block a user if he/she writes on your wall or in your chatbox. Just click on the last message they've written, and the option to block him/her will pop up. You can even just delete an unwanted comment.
You can check on and manage users you've blocked from here.