Fixed LDI writer. Apparently, I've forgotten how to use fseek ;_;