Ballocky is suggestive of the song "Bollochy Bill the Sailor," often sung by kids as "Barnacle Bill." Ed Cray, "The Erotic Muse," considers the song to be a descendant of "Abel (Abram) Brown the Sailor."
I will post the version in Cray to thread 36791, Abraham Brown the Sailor: Abraham Brown