Handle negative timestamps in writetime method

patch by slebresne; reviewed by thobbs for CASSANDRA-8139