Exactly...Of all the things John could have written, that which he did write was what he was instructed to write...
In a later book (referring to an EARLIER book) we find
Acts 1:1-2
In my former book, Theophilus, I wrote about all that Jesus began to do and to teach until the day he was taken up to heaven, after giving instructions through the Holy Spirit to the apostles he had chosen.