I mean F=ma states that mass and acceleration has an equal effect on force. So the forces you applied on 2 balls having different masses gave the same acceleration and the one with the greater mass had the greater force applied on it. Hence F is directly proportional to mass.