White ball is a check device to keep the beer in the line once you have untapped the keg. This prevents the "beer garden from growing in your kegerator!
As to the foam problem, could be the keg, stuck check ball, dirty system, frozen line, kink in line, warm beer, wrong pressure for the temp., etc.
Scott Zuhse, Instructor
Micro Matic Dispense Institute