I sent my resignation letter to my boss via email and notified HR after I received the reply from my boss. However, I changed my mind after quitting in one week. I called HR for holding my resignation after discussing my change with my boss. He said there is no problem for me to stay as long as I need.
Well, I had secondary offer now and I will be more careful this time.