Hi guys,
sed -i 's|.*SecServerSignature "CentOS WebPanel: Protected by Mod Security".*||g' /usr/local/apache/conf.d/mod_security.conf
service httpd restart
The above code fixed my problem. Htaccess is now being written by Wordpress. Many thanks for the tip!