Two writes per shard in erasure coding