method for writing bitrate measurements to file