You can't do it.
To make a buffer with pH = 9, you need an acid with
Citric acid is a tribasic acid with the formula
The weakest form of the acid,
Thus, you can't use it to make a buffer with pH = 9.
However, it would be great for making a buffer with pH = 7.