replaylog partial write bug

In ReplayLog::check_inner

            // TODO HSS if write_all fails, it might have written part of the data;
            // in that case, we must truncate the file to resynchronise.
            // We should probably set a note to truncate just before we call write_all
            // and clear it again afterwards.