I am having a very strange problem. I am not able to write or modify /bin directory. It is giving me "permission denied" error although the permission on the directory is fine (755)

I tried so many different tricks but it did not work out. Today I used debugfs to understand the issue better. It looks like the inode flags for this diectory is set to 0x33 (S_DEAD, S_IMMUTABLE are set), so I manually set it to 0x0 hoping that will fix the issue, but no avail. As soon as I want to write something to this directory, inode flags are again set to 0x33. So something most likely in the kernel is setting the flag back to 0x33 for some reason, and I do not have any idea why.

I would appreciate anybody commenting on this issue as this is driving me crazy...