Omi here also we what you are doing is applying a result directly without deriving it.
In my derivation if i had taken m1 and m2 instead of m and m i would have got omega = k(m1+m2)/(m1m2). From here we take out a direct result that when ever you have two masses m1 and m2 attached with spring of spring constant k assume that one is fixed and other has a mass of m1m2/(m1+m2) (called reduced mass) and find omega or time period directly.
And this thing should be absolutly clear to you that what i have done is derivation and what you are doing is just applying a result. It is OK to do so if you know the derivation and you are doing so just to save the time. But it is criminal to do so if you don't know how that result come. Because when it comes to applying same result in some other conditions you will have to make a decision whether you can apply it there are not. And you can do that only when you have an indepth understanding of result.