Add padChunk function for append requests

- The primary replica pads the chunk locally then applies the padding to
  all of its secondary replicas.
- Factor out code that applies serialized changes by primary to
  secondaries, which are used by Write and Append.
- Add IsAppend field in WriteArgs so we can reuse SerializedWrite for
  padding chunks.