It is a great idea to write down everything you eat, you can use it to identify your main issues, eg. in my case, snacking and takeaway. You just can't pretend, "I've hardly eaten anything and still haven't lost weight", when you have listed 6 packets of lollies, 5 donuts and 4 big takeaway meals.
Once you identify your issues/risks you can work out strategies of how to deal with them. It challenges you too, it taught me that you can't have everything or you'll see your weight going up, so you need to negotiate with yourself within the bounds of a realistic weight loss diet, eg. for work I now prepare meals & snacks, and share a large donut with 2 co-workers instead of eating it all myself, before a pary I'll work out what I can have. This means you don't feel you're missing out and don't feel a need to binge either.
"Unknowingly, we plow the dust of the stars, blown about us by the wind, and drink the universe in a glass of rain."