writes correct #(bytes) but not sure why /2 in WriteFile's param specifying #(bytes) to write