An upper bound for the condition number of a matrix in spectral norm