I knew balls out for steam governors, but always heard balls to the wall from pilots.
Nick, I'm only going on the University of Google and what I've read -
"Early railroad locomotives were powered by steam engines. Those engines typically had a mechanical governor. These governors consisted of two weighted steel balls mounted at the ends of two arms, jointed and attached to the end of a vertical shaft that was connected to the interior of the engine. The entire assembly is encased in a housing. The shafts and the weighted balls rotate at a rate driven by the engine speed. As engine speed increases, the assembly rotates at a faster speed and centrifugal force causes the weighted balls to hinge upward on the arms. At maximum engine speed - controlled by these governors - centrifugal force causes the two weighted balls to rotate with their connecting shafts parallel to the ground and thereby nearly touching the sides - the walls - of their metal housing. So, an engineer driving his steam locomotive at full throttle was going "balls to the wall". The expression came to be used commonly to describe something going full speed".So I'd think that pilots moving the balled throttles towards the aircraft's firewall was a later adaption of the term.