The entire system (block + rope) of mass (M+m) accelerates with $a = F / (M+m)$. The force on the block is provided by the tension at the end of the rope attached to it. This force is $F_{block} = M \times a = M \times (F / (M+m))$.