Write an in-memory buffer to the object database as a blob.
a Repository.
the data.
the length (in bytes) of the data.
the new GgitOid of the written blob, or null if writing the blob failed.
GgitOid