sha1_file: convert write_sha1_file to object_id