The process of introducing a phosphate group into a nucleoside diphosphate to produce a nucleoside triphosphate.