Fixed padding writing bug.

- When writing to padding the size of the content was being written as
  the tag size. The size shouldn't be changed at all since the total
  size of the tag didn't change.
- When writing to the padding and using less space then before, new
  padding bytes weren't being zeroed out.