Check return value of fwrite() when writing new offset data.