remove unused variable "wrote" from "gridseed_detect_one"