Не is used to negate a verb. It needs to preceed the verb.
Я пишу. - I'm writing
Я не пишу. - I'm not writing
Я ем. - I'm eating.
Я не ем. - I'm not eating.

Нет means no. It is used in cases...