Durably write bytes under key, overwriting any previous value.
Returns after the write is fsync'd (or equivalent). Never returns before the bytes are committed — the caller relies on this for crash-safe export.