A quantum stochastic calculus in fock space of input and output nondemolition processes