forking bitburner write thread function