function for sending packet: will send any queued data until it hits the window limit, will send blank acks if there is no data queued