The minimum word limit is important and you must write at least 150 words for Writing Task 1 and at least 250 words for Writing Task 2.
If you write less than this, you will have fewer ideas and may lose marks. However if you write much more, this does not mean you will gain marks. It is more important that you use correct English, appropriate grammar, and a wide range of vocabulary and sentence structures.