dnet: set ts to mtime in write_file()
dnet: use half-open interval for key range checks
dnet: removed stale comment