issue0020: fix-status-file-WriteAt-lost-data

when use file.WriteAt to write data, the last some bytes will be lost
so instead with ioutil.WriteFile

Change-Id: I03cd34d5acbb55a3de9bf7937b110fc64451d13a