update the activity timestamp when writing