add ptr check and ErrInvalid
	modified:   bitcask.go
	modified:   record.go