finish_write(): Reorganize