You absolutely can not control how big a snake gets. It's a rumor that they only grow to how big the tank is or how much you feed them. If fed and housed properly, a ball python can grow to be anywhere from 3 1/2 to 5 feet, with extremes of 6ft females having been known in rare cases.
If you want a smaller ball python make sure you get a male. They tend to stay smaller overall but it's no guarantee. I myself had a male cinnamon that was huge for a male at a thick 2500+ grams and 4ft.
If you're that concerned with size maybe you should go with something that will not get as large. Corn snakes get longer but not as heavy bodied. If you absolutely want a boa or python look into spotted or children's pythons, and rosey or sand boas.