Add write_blob function, with check for repository validity
Add write support to jit-hash-object