Except for that part where Jesus Himself tells the Apostles "what you loose on earth will be loosed in heaven, what you bind on earth with be bound in heaven..." Did He anticipate them being around for 400 years so they could teach from "scripture"?
You will probably respond that all that the Apostles taught ended up in Scripture, yet John ends his Gospel by pointing out that in no way could he write down all that Jesus did during His ministry.
Actually, in the Greek text (consult any good commentary on the original text) Jesus said, "Whatsoever you shall loose on earth SHALL HAVE BEEN LOOSED in heaven, etc..." Jesus was not giving them the authority to make up their own doctrine, rather he was stating that their inspired utterances would echo what had already been determined in the mind of God.