storage: Allow to write contents with a buffer.