Nonequilibrium process of magnetization switching influenced by thermal spin fluctuations