I think that "the whole nine yards" is referring to the amount of concrete that a concrete truck can hold, When you use the whole truck load you have used "the whole nine yards".