Fix wrong write speed calculation