Make sure that Coffee updates the file end after a micro log write.

This error was discussed in contiki-os/contiki/512.