You can use mpi_ssend, which blocks until the message is posted on the receiver.