Corrected major bug in write back!

For some reason, the writing pointer may go to the wrong place and things will
overlap. Now it's placed at the end every time there's a write back.