The ball at the top of a flag pole is called a finial. The pulley wheel assembly used to hoist the flag is "the truck"
Keith