Small ball probability and its application to a class of stochastic partial differential equations