Merge pull request #41 from caskdata/bugfix/overflow_max_writeptr TEPHRA-76 Prevent overflow of write pointer value