Uses the memory for write then releases the writer.
Writes the object value with spec starting from offset.